import {Component} from "@angular/core";
import {HttpClient} from "@angular/common/http";
import {AppUrl} from "../../../app.url";

@Component({
  templateUrl:'business-confirm.component.html'
})

export class BusinessConfirmComponent{
    busiconfirmList:any=[];

    constructor(private http:HttpClient){
        this.http.post(AppUrl.authentication.busiLicenseUrl,{}).subscribe(data=>{
            console.log(data);
            let temp:any=data;
            this.busiconfirmList=temp.data;
        });
    }

    confirmpass(data,id){
        this.http.post(AppUrl.authentication.confirmUrl,{authflag:data,id:id}).subscribe(data=>{
            console.log(data);
        });
    }
}
